package wzh000;

public class NodeInfo {

	private boolean updated;
	private String hostname;
	private boolean revoked;
	
	public void setRevoked(){
		this.revoked = true;
	}
	
	public boolean isRevoked(){
		return this.revoked;
	}
	
	public NodeInfo(String hostname){
		this.hostname = hostname;
	}
	
	public String getHost(){
		return this.hostname;
	}
	
	public void setUpdated(){
		this.updated = true;  //Has gossiped CRL to the node
	}
	
	public void clearUpdated(){
		this.updated = false;
	}
	
	public boolean getUpdated(){
		return this.updated;
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
